<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<c:set var="ctx" value="${pageContext.request.contextPath}"/>
<%@include file="../base/base.jspf" %>
<div class="layui-form" style="padding: 47px 0 0 70px;">
    <div class="layui-col-xs6">
        <div class="layui-form-item">
            <label class="layui-form-label">用户名</label>
            <div class="layui-input-inline">
                <input type="text" value="${user.userName}" readonly
                       placeholder="请输入姓名"
                       class="layui-input"/>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">警号</label>
            <div class="layui-input-inline">
                <input type="text" value="${user.policeId}" autocomplete="off"
                       class="layui-input" readonly>
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">联系电话</label>
            <div class="layui-input-inline">
                <input type="text" value="${user.phoneNumber}" readonly class="layui-input"/>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">用户角色</label>
            <div class="layui-input-inline">
                <input type="text" value="${user.roleName}" readonly class="layui-input"/>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">所在单位</label>
            <div class="layui-input-inline">
                <div class="layui-input-inline">
                    <input type="text" value="${user.unitName}" readonly class="layui-input"/>
                </div>
            </div>
        </div>
    </div>
    <div class="layui-col-xs6">
        <img height="150" src="${user.headPic}" id="user-userSubmitPage-userHead"
             class="thumbnail inline no-margin-bottom"
             onerror="javascript:this.src='${ctx}/static/images/pic-default.jpg';">
    </div>
</div>
